package cn.iocoder.aics.module.member.controller.app.chathistory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

// 聊天请求（用户层）
@Data
public class ChatRequestVo {
    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11218")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "问题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "问题不能为空")
    private String question;

    @Schema(description = "上下文ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11218")
    @NotNull(message = "上下文ID不能为空")
    private Long contextId;
}